Skip to content

Enhance YOLOv12 Face Detection with GPU Support, Privacy Mode, and Gallery#31

Merged
RevDra merged 3 commits intomainfrom
feature/yolov12-enhancements-12065996488473101507
Mar 21, 2026
Merged

Enhance YOLOv12 Face Detection with GPU Support, Privacy Mode, and Gallery#31
RevDra merged 3 commits intomainfrom
feature/yolov12-enhancements-12065996488473101507

Conversation

@RevDra
Copy link
Copy Markdown
Owner

@RevDra RevDra commented Mar 21, 2026

The project was upgraded with several new features and performance enhancements:

  1. GPU Acceleration: The YOLOv12FaceDetector now automatically detects and utilizes CUDA for faster inference when available.
  2. Privacy Mode (Blur Faces): A new face-blurring feature was added to both the backend and frontend, allowing users to anonymize detections using Gaussian blur for enhanced privacy.
  3. Face Gallery: The system now extracts individual face crops from detected images, which are displayed in a new interactive "Face Gallery" section on the frontend.
  4. Enhanced UI (Dark Mode): A professional Dark Mode theme was implemented with a toggle switch and persistent storage in the browser's localStorage for improved user experience.
  5. API Upgrades: The /api/detect-image endpoint was updated to support the new blurring parameter and provide extracted crops in the response.

Extensive testing was performed using mock environments to verify the backend logic, API responses, and frontend UI changes (including Playwright-based visual verification).


PR created automatically by Jules for task 12065996488473101507 started by @RevDra

- Added GPU support (CUDA) to the YOLOv12 detector if available.
- Implemented `blur_faces` method in `YOLOv12FaceDetector` for privacy-conscious detections.
- Implemented `get_face_crops` method to extract and gallery detected faces.
- Updated `/api/detect-image` to support an optional `blur` parameter and return base64 face crops.
- Added a Dark Mode toggle to the web UI with persistent theme settings.
- Added a "Privacy Mode (Blur Faces)" toggle and a "Face Gallery" section to the UI.
- Cleaned up the repository of temporary test and mock files.

Co-authored-by: RevDra <200167038+RevDra@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@RevDra RevDra merged commit 53a3e90 into main Mar 21, 2026
6 checks passed
@RevDra RevDra deleted the feature/yolov12-enhancements-12065996488473101507 branch March 21, 2026 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants